package com.hongdee.crm.weChat.service.impl;

import com.hongdee.crm.weChat.dao.ITBcBrandDao;
import com.hongdee.crm.weChat.service.ITCrmBcBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Liu XiaoLong
 * Date: 2017/10/23.
 * Remark:
 */
@Service
public class WechatTCrmBcBrandServiceImpl implements ITCrmBcBrandService {
    @Autowired
    private ITBcBrandDao itBcBrandDao;
    private String tableName = "t_bc_brand";

    /**
     * @Name: 获取车辆品牌
     * @Author: Liu XiaoLong
     * @Date: 2017/10/23 14:32
     * @Remark:
     */
    @Override
    public List getBrandList(String uid) throws Exception {
        String sql = "select id,b_name name from "+tableName+" ";

        return itBcBrandDao.list(sql);
    }
}
